package Error;

public abstract class CompilError extends Exception {
	private static final long serialVersionUID = -4474929204185472460L;

	/**
	 * Ligne de l'erreur
	 */
	protected int iLine;

	/**
	 * Colonne de l'erreur
	 */
	protected int iColumn;

	/**
	 * @return the iColumn
	 */
	public int getColumn() {
		return this.iColumn;
	}

	/**
	 * @return the iLine
	 */
	public int getLine() {
		return this.iLine;
	}
	
	public boolean IsSyntaxError()
	{
		return false;
	}
	
	public boolean IsLexicalError()
	{
		return false;
	}
	
	public boolean IsTypeError()
	{
		return false;
	}
	
	public CompilError(int iLine, int iColumn, String message) {
		super(message);
		this.iLine = iLine;
		this.iColumn = iColumn;
	}
}
